package prassein.rsm.service.base;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import prassein.rsm.dao.base.PermLevelDao;
import prassein.rsm.entity.base.PermLevel;

@Service
public class PermLevelManager {

	@Autowired
	private PermLevelDao permLevelDao;

	public PermLevelDao getPermLevelDao() {
		return permLevelDao;
	}

	public void setPermLevelDao(PermLevelDao permLevelDao) {
		this.permLevelDao = permLevelDao;
	}
	
	public List<PermLevel> getPermLevel(){
		return permLevelDao.getAll();
	}
	
	public void save(PermLevel resume) {
		permLevelDao.save(resume);
	}
	
	public PermLevel getPermLevel(Serializable id){
		return permLevelDao.get(id);
	}
}
